package com.iflytek.sbd.swagger.model;

import java.io.Serializable;
import java.util.Objects;

/**
 * @program: myes
 * @description:
 * @author: 陈英俊
 * @create: 2021-09-10 10:37
 */
public class Response implements Serializable {
    private String description;
    private String name;
    private String remark;

    public Response() {
    }

    public String getDescription() {
        return this.description;
    }

    public String getName() {
        return this.name;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setDescription(final String description) {
        this.description = description;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public void setRemark(final String remark) {
        this.remark = remark;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Response)) {
            return false;
        } else {
            Response other = (Response)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$description = this.getDescription();
                    Object other$description = other.getDescription();
                    if (this$description == null) {
                        if (other$description == null) {
                            break label47;
                        }
                    } else if (this$description.equals(other$description)) {
                        break label47;
                    }

                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                Object this$remark = this.getRemark();
                Object other$remark = other.getRemark();
                if (this$remark == null) {
                    return other$remark == null;
                } else return this$remark.equals(other$remark);
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Response;
    }

//    public int hashCode() {
//        int PRIME = true;
//        int result = 1;
//        Object $description = this.getDescription();
//        int result = result * 59 + ($description == null ? 43 : $description.hashCode());
//        Object $name = this.getName();
//        result = result * 59 + ($name == null ? 43 : $name.hashCode());
//        Object $remark = this.getRemark();
//        result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
//        return result;
//    }


    @Override
    public int hashCode() {
        return Objects.hash(description, name, remark);
    }

    public String toString() {
        return "Response(description=" + this.getDescription() + ", name=" + this.getName() + ", remark=" + this.getRemark() + ")";
    }
}
